<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui-v2.5.5/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/index.css">
    <link rel="stylesheet" href="/fonts/font-awesome.min.css">
    {block name="css"}
    <!--css-->
    {/block}
    <script src="/js-base64-master/base64.min.js"></script>
    <script src="/layui-v2.5.5/layui/layui.js"></script>
    <script src="/js/jquery-2.1.1.min.js"></script>
<!--    <script src="/layDate-v5.0.9/laydate/laydate.js"></script>-->
    {block name="js"}
    <!--js-->
    {/block}
    <style>
        *{
            box-sizing: border-box;
        }
        body{
            width:100vw;
            overflow-x: hidden;
        }
    </style>
</head>
<body>
    <div id="hd" style="position: absolute;width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);z-index: 80;display: none;"></div>
    <div id="menu_top">
        {block name="menu_top"}
        <!--顶部栏目-->
        <div style="padding:15px 0;border-bottom: 1px solid rgba(0,0,0,0.5);position: relative">
            <ul style="display: inline-block;position: absolute;left:15px;">
                <li>
                    <div style="background:#000;width:10px;height:2px;margin:3px 0;"></div>
                </li>
                <li>
                    <div style="background:#000;width:10px;height:2px;margin:3px 0;"></div>
                </li>
                <li>
                    <div style="background:#000;width:10px;height:2px;margin:3px 0;"></div>
                </li>
            </ul>
            <div style="margin-left:40px;">{$menuname}
                {if isset($view)}
                {$view}
                {/if}
            </div>
            <div class="userlogo">
                <ul style="background:#fff" class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a style="color:#000;" href="javascript:;">
                            账户名称： <span>{$login['name']}</span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a id="exitss">退出登录</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        {/block}
    </div>
    <script>
        $("#exitss").click(function(){
            top.location.href = "{:url('user/exits')}";
        })
        //注意：导航 依赖 element 模块，否则无法进行功能性操作
        layui.use('element', function(){
            var element = layui.element;

            //…
        });

    </script>
    <div id="menu_content">
        {block name="menu_content"}
        <!--主内容-->
        {/block}
    </div>
</body>
</html>